package com.jeesite.modules.dataScreen.web;


import com.alibaba.fastjson2.JSONObject;
import com.jeesite.modules.dataScreen.web.vo.IndustryIndexVo;
import com.jeesite.modules.dataScreen.web.vo.Result;
import com.jeesite.modules.dataScreen.service.CreditApprovalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/creditApproval")
@Api(tags = "信用审批模块")
public class CreditApprovalApi {

    @Autowired
    private CreditApprovalService creditApprovalService;

    @GetMapping("/baseInformation")
    @ApiOperation("基础信息")
    public Result<?> baseInformation() {
        JSONObject result=creditApprovalService.baseInformation();
        return Result.OK(result);
    }

    @GetMapping("/trafficEngineering")
    @ApiOperation("交通工程建设信用")
    public Result<?> trafficEngineering() {
        JSONObject result=creditApprovalService.trafficEngineering();
        return Result.OK(result);
    }
}
